Python code for Civil Engineering